char firstUniqueCharacter(const std::string & inputString)
{
    const int length = inputString.size();
    for ( int i=0 ; i<length; i++)
    {
		bool found = false;
		for ( int j=0 ; j<length; j++)
		{
			if (i != j && inputString[i]==inputString[j])
			{
				found = true;
				break;
			}
		}
		if(found == false)
		{
			return   inputString[i];
		} 
	}
    return 0;
}
int main()
{
	string str("aaabbbabcdccc");	
	cout<<"first unique char :"<<firstUniqueCharacter(str)<<endl;
    return 0;
}